package com.cloud.feign.configuration;

import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 2020/3/17
 * 文件上传配置
 *
 * @author machuanpeng
 */
@Configuration
public class MultipartSupportConfiguration {

    /**
     * 注入Feign编码器.
     * 2020/3/18
     *
     * @param
     * @return feign.codec.Encoder
     * @author machuanpeng
     */
    @Bean
    public Encoder feignFormEncoder() {
        return new SpringFormEncoder();
    }
}
